<!--
*Author：jxx
 *Contact：283591387@qq.com
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *业务请在@/extension/operationsinfo//q_fittings_delivery_mx/q_fittings_delivery_mx.js此处编写
 -->
<template>
    <view-grid ref="grid"
               :columns="columns"
               :detail="detail"
               :editFormFields="editFormFields"
               :editFormOptions="editFormOptions"
               :searchFormFields="searchFormFields"
               :searchFormOptions="searchFormOptions"
               :table="table"
               :extend="extend">
    </view-grid>
</template>
<script>
    import extend from "@/extension/operationsinfo//q_fittings_delivery_mx/q_fittings_delivery_mx.js";
    import { ref, defineComponent } from "vue";
    export default defineComponent({
        setup() {
            const table = ref({
                key: 'ID',
                footer: "Foots",
                cnName: '运维发货单明细查询',
                name: '/q_fittings_delivery_mx/q_fittings_delivery_mx',
                url: "/q_fittings_delivery_mx/",
                sortName: "商品编码,单号"
            });
            const editFormFields = ref({});
            const editFormOptions = ref([]);
            const searchFormFields = ref({"单号":"","客户":"","商品编码":"","商品名称":"","AuditStatus":"","CreateDate":""});
            const searchFormOptions = ref([[{"title":"单号","field":"单号","type":"like"},{"dataKey":"客户","data":[],"title":"客户","field":"客户","type":"select"},{"title":"商品编码","field":"商品编码","type":"like"}],[{"title":"商品名称","field":"商品名称","type":"like"},{"dataKey":"audit","data":[],"title":"审核状态","field":"AuditStatus","type":"select"},{"title":"创建时间","field":"CreateDate","type":"datetime"}]]);
            const columns = ref([{field:'ID',title:'ID',type:'guid',width:110,hidden:true,require:true,align:'left'},
                       {field:'单号',title:'单号',type:'string',width:200,align:'left',sort:true},
                       {field:'客户',title:'客户',type:'string',bind:{ key:'客户',data:[]},width:200,require:true,align:'left'},
                       {field:'商品编码',title:'商品编码',type:'string',width:80,align:'left'},
                       {field:'商品名称',title:'商品名称',type:'string',width:200,align:'left'},
                       {field:'数量',title:'数量',type:'float',width:80,require:true,align:'left'},
                       {field:'规格',title:'规格',type:'string',width:80,align:'left'},
                       {field:'成本',title:'成本',type:'decimal',width:80,require:true,align:'left'},
                       {field:'无税成本',title:'无税成本',type:'decimal',width:80,require:true,align:'left'},
                       {field:'成本总价',title:'成本总价',type:'decimal',width:80,require:true,align:'left'},
                       {field:'无税成本总价',title:'无税成本总价',type:'decimal',width:80,require:true,align:'left'},
                       {field:'AuditStatus',title:'审核状态',type:'int',bind:{ key:'audit',data:[]},width:100,align:'left'},
                       {field:'CreateDate',title:'创建时间',type:'datetime',width:150,align:'left',sort:true}]);
            const detail = ref({
                cnName: "#detailCnName",
                table: "#detailTable",
                columns: [],
                sortName: "",
                key: ""
            });
            return {
                table,
                extend,
                editFormFields,
                editFormOptions,
                searchFormFields,
                searchFormOptions,
                columns,
                detail,
            };
        },
    });
</script>
